package com.example.demo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: KUN
 * @Date: 2018/3/6 9:54
 *
 */
@RestController
public class ConfigBeanMDController {
    @Autowired
    private ConfigBeanMD configBeanMD;

    @RequestMapping("/i")
    public String index(){

        return configBeanMD.getName() + configBeanMD.getWant() + configBeanMD.getSecret();
    }


    @RequestMapping("/bd")
    public String bd(){
        return "www.baidu.com";
    }

}
